import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import local_remove from '@dfeidao/atom-web/local/remove';
import render from '@dfeidao/atom-web/render/render';
import _hide from '@dfeidao/atom-web/ui/hide';
import P01 from './P01';
// 新增弹窗关闭
export default async function a002(fd: IFeidaoAiBrowserComponent) {
	_hide(fd.data.node);
	local_remove(fd, "group_number");
	local_remove(fd, "client_type");
	local_remove(fd, "pub_package");
	local_remove(fd, "data");
	render(fd, [], P01, 'P01', 'inner');
	fd.data.node.querySelector<HTMLInputElement>('[data-feidao-id="formname"]').value = "";
	fd.data.node.querySelector<HTMLInputElement>('[data-feidao-id="package_name"]').value = "";
	fd.data.node.querySelector<HTMLSpanElement>('[data-feidao-id="package_path"]').innerText = "";
}
